package com.jh3502.helper.function.me;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button;
import android.widget.TextView;

import com.jh3502.helper.R;
import com.jh3502.helper.base.BaseActivity;
import com.jh3502.helper.function.login.LoginActivity;
import com.jh3502.helper.utils.ActivityTracker;
import com.jh3502.helper.utils.SpHelper;
import com.jh3502.helper.utils.Utils;
import com.jh3502.helper.view.RoundImageView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author harisucici
 * @date 2018/2/2
 */

public class HomeMeActivity extends BaseActivity {
    @Nullable
    @BindView(R.id.me_head)
    RoundImageView meHead;
    @Nullable
    @BindView(R.id.me_name)
    TextView meName;
    @Nullable
    @BindView(R.id.me_phone)
    TextView mePhone;
    @Nullable
    @BindView(R.id.me_addr)
    TextView meAddr;
    @Nullable
    @BindView(R.id.me_exit)
    Button meExit;

    @Override
    public void responseError(int code, String msg) {

    }

    @Override
    public int setViewId() {
        return R.layout.activity_home_me;
    }

    @Override
    protected void initView() {
//        Aesthetic.get()
//                .colorStatusBarRes(R.color.green_lite)
//                .apply();


    }

    @Override
    protected void initData() {
    }

    @Override
    protected void doOnDestroy() {

    }

    @Override
    protected void doOnResume() {

    }


    @Override
    protected void doOnSaveInstanceState(Bundle savedInstanceState) {

    }

    @OnClick(R.id.me_back)
    public void onMeBackClicked() {
        onBackPressed();
    }

    @OnClick(R.id.me_exit)
    public void onMeExitClicked() {
        SpHelper.getInstance().clearAll();
        Utils.getInstance().startActivity(this, LoginActivity.class, null, true);
        ActivityTracker.getInstance().finishAll();
    }

}
